package com.demo6;

public class DogTest {
    public static void main(String[] args) {
        //创建对象并调用方法
        Husky husky = new Husky();
        husky.eat();
        husky.drink();
        husky.lookHome();
        husky.breakHome();
        System.out.println("================");
        ChineseDog chineseDog = new ChineseDog();
        chineseDog.eat();
        chineseDog.drink();
        chineseDog.lookHome();
        System.out.println("================");
        SharPei sharPei = new SharPei();
        sharPei.eat();
        sharPei.drink();
        sharPei.lookHome();
    }
}
